// 导入axios
import request from '@/utils/request'

// 权限列表数据
export function GetRightPort(type) {
    return request({
        url: `/rights/${type}`,
        method: 'get'
    })
}
// 设置权限
export function SetRightPort(id,data) {
    return request({
        url: `/roles/${id}/rights`,
        method: 'post',
        data:{rids:data}
    })
}
// 删除单个权限
export function DelRightPort(id,rid) {
    return request({
        url: `/roles/${id}/rights/${rid}`,
        method: 'delete'
    })
}